#coding:utf-8
# 参数初始化
import os
os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf

def exam1():

    initialize_all_variables = tf.initializers.glorot_normal()
    values = initialize_all_variables(shape=(9, 2))
    print(values)

def exam2():
    initialize_all_variables = tf.keras.initializers.glorot_uniform()
    values = initialize_all_variables(shape=(9, 2))
    print(values)

def exam3():
    initialize_all_variables = tf.initializers.he_normal()
    values = initialize_all_variables(shape=(9, 2))
    print(values)


def exam4():
    initialize_all_variables = tf.keras.initializers.he_uniform()
    values = initialize_all_variables(shape=(9, 2))
    print(values)

if __name__ == '__main__':
    #exam1()
    #exam2()
    #exam3()
    exam4()
    